<?php
	$mdlUser = new ObjData2(TBL_PREFIX.'users');
	// Cac field hien thi tren form nhap
	$mdlUser->arrInputFields = array('username', 'name', 'pass', 'address', 'phone', 'email', 'identnumber');
	// Map cac field voi ten cua doi tuong
	$mdlUser->arrFieldsMap = array('username'=>'txtUsername2', 'name'=>'txtName2', 'address'=>'txtAddress2', 'phone'=>'txtPhone2', 'email'=>'txtEmail2', 'identnumber'=>'txtCMND');
	//Cac field bat buoc phai nhap
	//$mdlUser->arrRequired = array('name'=>1, 'pass'=>1);
	// Cac field can validate
	//$mdlUser->arrValidator = array('name'=>'txtName');
	// Dieu chinh cac tieu de
	//$mdlUser->arrCaptions = array('username'=>'Tên truy cập', 'name'=>'Họ tên/Công ty', 'pass'=>'Mật khẩu', 'groupid'=>'Loại tài khoản');
	// Cac o nhap khong phai la textbox
	$mdlUser->arrInput = array('pass'=>'password');
	// Gia tri cho cac o nhap la combobox
	//$mdlUser->arrFieldData['groupid'] = $arrAccType;
